import requests


"""
    登录接口封装层
"""
class IhrmLoginApi:
    login_url = "https://ihrm-java.itheima.net/api/sys/login"
    login_header = {"Content-Type": "application/json"}
    @classmethod
    def login(cls,json_data):
        resp = requests.post(url=cls.login_url,headers=cls.login_header,json=json_data)
        return resp

if __name__ == '__main__':
    data = {"mobile": "13800000002", "password": "929itheima.CN032@.20250614"}
    resp = IhrmLoginApi.login(data)
    print(resp.json())
